package com.be.beadmin.basicData.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * @author chenwei
 * @date 2/23/2023 2:11 PM
 * 工作中心表
 */
@Entity
@Table(name="T_BASEDATA_WORKCENTER")
@Getter
@Setter
public class WorkCenter extends BaseEntity {
    @Column(name = "WorkCenterCode", columnDefinition = "VARCHAR(32) COMMENT '工作中心编码' ")
    private String workCenterCode;

    @Column(name = "WorkCenterName", columnDefinition = "VARCHAR(32) COMMENT '工作中心名称' ")
    private String workCenterName;

    @Column(name = "WorkCenterDesc", columnDefinition = "VARCHAR(32) COMMENT '工作中心描述' ")
    private String workCenterDesc;

    @ManyToOne(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
    @JoinColumn(name = "WAREHOUSE_ID",columnDefinition = "VARCHAR(45) COMMENT '仓库ID' ")
    private Warehouse warehouse;
}